package org.example.myleet.p542;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(Assert.isPass(Parser.parse("[[0,0,0],[0,1,0],[0,0,0]]"), solution.updateMatrix(Parser.parse("[[0,0,0],[0,1,0],[0,0,0]]"))));
        Assert.isTrue(Assert.isPass(Parser.parse("[[0,0,0],[0,1,0],[1,2,1]]"), solution.updateMatrix(Parser.parse("[[0,0,0],[0,1,0],[1,1,1]]"))));
        Assert.isTrue(Assert.isPass(Parser.parse("[[0,1,0,1,2],[1,1,0,0,1],[0,0,0,1,0],[1,0,1,1,1],[1,0,0,0,1]]"), solution.updateMatrix(Parser.parse("[[0,1,0,1,1],[1,1,0,0,1],[0,0,0,1,0],[1,0,1,1,1],[1,0,0,0,1]]"))));
        Assert.isTrue(Assert.isPass(Parser.parse("[[2,1,0,0,1,0,0,1,1,0],[1,0,0,1,0,1,1,2,2,1],[1,1,1,0,0,1,2,2,1,0],[0,1,2,1,0,1,2,3,2,1],[0,0,1,2,1,2,1,2,1,0],[1,1,2,3,2,1,0,1,1,1],[0,1,2,3,2,1,1,0,0,1],[1,2,1,2,1,0,0,1,1,2],[0,1,0,1,1,0,1,2,2,3],[1,2,1,0,1,0,1,2,3,4]]"), solution.updateMatrix(Parser.parse("[[1,1,0,0,1,0,0,1,1,0],[1,0,0,1,0,1,1,1,1,1],[1,1,1,0,0,1,1,1,1,0],[0,1,1,1,0,1,1,1,1,1],[0,0,1,1,1,1,1,1,1,0],[1,1,1,1,1,1,0,1,1,1],[0,1,1,1,1,1,1,0,0,1],[1,1,1,1,1,0,0,1,1,1],[0,1,0,1,1,0,1,1,1,1],[1,1,1,0,1,0,1,1,1,1]]"))));
    }
}
